package com.zzxy.springmvc5;

public class StudentController {
    public IStudentService getStudentService() {
        return studentService;
    }

    public void setStudentService(IStudentService studentService) {
        this.studentService = studentService;
    }

    private IStudentService studentService;

    public StudentController(IStudentService studentService) {
        this.studentService = studentService;
    }

    public void addStudent(String username,String password){
        studentService.addStudent(username,password);
    }
}
